:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --background-color: #2f3542;
    --text-color: #f1f2f6;
    --card-bg: rgba(255, 255, 255, 0.1);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
}

/* 导航栏样式继承自主样式 */

.reviews-container {
    max-width: 1200px;
    margin: 80px auto 0;
    padding: 0 20px;
}

/* 统计面板 */
.stats-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr) auto;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-text {
    font-size: 1.2rem;
    color: var(--text-color);
}

.write-review-btn {
    padding: 0.8rem 2rem;
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.write-review-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

/* 筛选区域 */
.filter-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
}

.search-box {
    display: flex;
    flex: 1;
    max-width: 400px;
}

.search-box input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 8px 0 0 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.search-box button {
    padding: 10px 20px;
    border: none;
    border-radius: 0 8px 8px 0;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
}

.filter-options select {
    padding: 10px 15px;
    margin-left: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    cursor: pointer;
}

/* 测评卡片 */
.review-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.game-rating {
    text-align: right;
}

.stars {
    color: #ffd700;
    margin-bottom: 5px;
}

.rating-score {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.review-content {
    position: relative;
}

.game-info {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.game-cover {
    width: 120px;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
}

.game-details h3 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
}

.game-meta {
    color: #999;
    font-size: 0.9rem;
}

.review-text {
    line-height: 1.6;
    margin-bottom: 20px;
}

.review-actions {
    display: flex;
    gap: 15px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    border: none;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 写测评弹窗 */
.review-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.review-form {
    background: #fff;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.review-form-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.review-form-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
}

.form-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background: #fff;
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.5;
}

/* 选择框样式优化 */
.select-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.select-wrapper select {
    width: 100%;
    height: 45px;
    padding: 0 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    appearance: none;
    background: #fff;
    font-size: 1rem;
    color: #333;
    line-height: 45px;
}

.select-wrapper i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
}

/* 评分样式优化 */
.rating-group {
    margin: 1.5rem 0;
}

.rating-input {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.5rem 0;
}

.rating-input .stars {
    display: flex;
    gap: 0.5rem;
}

.rating-input i {
    font-size: 1.8rem;
    color: #ffd700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.rating-text {
    color: #666;
    font-size: 1rem;
    min-width: 80px;
}

/* 文本域样式优化 */
textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: vertical;
    min-height: 150px;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

.word-count {
    text-align: right;
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    line-height: 1.4;
}

/* 表单操作按钮 */
.form-actions {
    padding: 1.5rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    background: #f8f9fa;
}

.cancel-btn,
.submit-btn {
    height: 45px;
    line-height: 45px;
    padding: 0 2rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.cancel-btn {
    background: #f1f3f5;
    border: 1px solid #ddd;
    color: #666;
}

.submit-btn {
    background: var(--primary-color);
    border: none;
    color: white;
}

.cancel-btn:hover {
    background: #e9ecef;
}

.submit-btn:hover {
    background: #ff5252;
    transform: translateY(-2px);
}

/* 响应式优化 */
@media (max-width: 768px) {
    .review-form {
        width: 95%;
        margin: 10px;
    }

    .form-content {
        padding: 1rem;
    }

    .rating-input {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .recommend-options {
        flex-direction: column;
        gap: 1rem;
    }

    .form-actions {
        padding: 1rem;
        flex-direction: column;
    }

    .cancel-btn,
    .submit-btn {
        width: 100%;
    }

    .form-group {
        margin-bottom: 1.5rem;
    }
}

/* 错误提示样式 */
.error-message {
    color: #ff4444;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* 禁用状态样式 */
select:disabled,
textarea:disabled,
input:disabled {
    background: #f8f9fa;
    cursor: not-allowed;
}

/* 标签样式优化 */
.tags-section {
    margin: 1.5rem 0;
}

.pros-tags,
.cons-tags {
    margin-bottom: 2rem;
}

.pros-tags h4,
.cons-tags h4 {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tag {
    height: 32px;
    line-height: 32px;
    padding: 0 1.2rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    font-size: 0.9rem;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tag:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.tag.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 推荐程度选项样式 */
.recommend-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-top: 1rem;
}

.recommend-options label {
    height: 40px;
    line-height: 40px;
    padding: 0 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    font-size: 0.95rem;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.recommend-options label:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.recommend-options input[type="radio"] {
    margin: 0;
    width: 16px;
    height: 16px;
}

.recommend-options input[type="radio"]:checked + span {
    color: var(--primary-color);
    font-weight: 500;
}

/* 文件上传区域样式 */
.upload-section {
    margin: 1.5rem 0;
}

.file-upload-wrapper {
    min-height: 150px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.file-upload-wrapper:hover {
    border-color: var(--primary-color);
    background: #fff;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-icon {
    font-size: 2rem;
    color: #adb5bd;
    margin-bottom: 1rem;
}

.upload-text {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
    margin: 0.5rem 0;
}

.upload-tip {
    font-size: 0.9rem;
    color: #999;
    line-height: 1.5;
}

/* 视频链接输入框样式 */
.video-url-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #495057;
    transition: all 0.2s ease;
}

.video-url-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.1);
}

/* 可见性选择器样式 */
.visibility-select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #495057;
    background: #fff;
    cursor: pointer;
    appearance: none;
}

.visibility-wrapper {
    position: relative;
}

.visibility-wrapper::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    pointer-events: none;
}

/* 错误提示样式 */
.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .tag-list {
        gap: 0.8rem;
    }

    .tag {
        height: 28px;
        line-height: 28px;
        padding: 0 1rem;
        font-size: 0.85rem;
    }

    .recommend-options {
        flex-direction: column;
        gap: 0.8rem;
    }

    .recommend-options label {
        width: 100%;
        justify-content: center;
    }

    .file-upload-wrapper {
        min-height: 120px;
        padding: 1.5rem;
    }
}

/* 滚动条样式优化 */
.form-content::-webkit-scrollbar {
    width: 8px;
}

.form-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.form-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.form-content::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* 点赞按钮样式 */
.like-btn.liked {
    background: var(--primary-color);
}

.like-btn.liked i {
    color: white;
}

@keyframes like-animation {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.animate-like {
    animation: like-animation 0.3s ease;
}

/* 评论区域样式 */
.comment-section {
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

.comment-section.hidden {
    display: none;
}

.comments-list {
    margin-bottom: 1rem;
}

.comment-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.comment-username {
    font-weight: 500;
}

.comment-time {
    color: #999;
    font-size: 0.9rem;
}

.comment-form {
    display: flex;
    gap: 1rem;
}

.comment-form textarea {
    flex: 1;
    min-height: 60px;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    resize: vertical;
}

.comment-form button {
    align-self: flex-start;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-form button:hover {
    background: #ff5252;
    transform: translateY(-2px);
}

/* 分页样式优化 */
.pagination {
    margin: 3rem 0;
}

.page-numbers {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.page-dots {
    color: #666;
    padding: 0 0.5rem;
}

.pagination button {
    min-width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination button:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
}

.pagination button.active {
    background: var(--primary-color);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
} 